<?php
class Team
{
/*
Created: October 19th, 2007
*/
	/* Team Class Attributes */
	var $TeamName;
	var $City;
	var $URL;
	var $Wins;
	var $HomeWins;
	var $RoadWins;
	var $AFCWins;
	var $NFCWins;
	var $DivWins;
	var $Losses;
	var $HomeLosses;
	var $RoadLosses;
	var $AFCLosses;
	var $NFCLosses;
	var $DivLosses;
	var $Ties;
	var $Conference;
	var $Division;
	var $PointsFor;
	var $PointsAgainst;
	var $Streak;
	

	/*
	Function: Team($TeamName='',$City='',$URL='',$Wins='',$HomeWins='',$RoadWins='',$AFCWins='',$NFCWins='',$DivWins='',$Losses='',$HomeLosses='',$RoadLosses='',$AFCLosses='',$NFCLosses='',$DivLosses='',$Ties='',$Conference='',$Division='',$PointsFor='',$PointsAgainst='',$Streak='')
	Updated: October 19th, 2007
	Description: Team Class constructor.
	*/	
	function Team($TeamName='',$City='',$URL='',$Wins='',$HomeWins='',$RoadWins='',$AFCWins='',$NFCWins='',$DivWins='',$Losses='',$HomeLosses='',$RoadLosses='',$AFCLosses='',$NFCLosses='',$DivLosses='',$Ties='',$Conference='',$Division='',$PointsFor='',$PointsAgainst='',$Streak='')
	{
		$this->TeamName = $TeamName;
		$this->City = $City;
		$this->URL = $URL;
		$this->Wins = $Wins;
		$this->HomeWins = $HomeWins;
		$this->RoadWins = $RoadWins;
		$this->AFCWins = $AFCWins;
		$this->NFCWins = $NFCWins;
		$this->DivWins = $DivWins;
		$this->Losses = $Losses;
		$this->HomeLosses = $HomeLosses;
		$this->RoadLosses = $RoadLosses;
		$this->AFCLosses = $AFCLosses;
		$this->NFCLosses = $NFCLosses;
		$this->DivLosses = $DivLosses;
		$this->Ties = $Ties;
		$this->Conference = $Conference;
		$this->Division = $Division;
		$this->PointsFor = $PointsFor;
		$this->PointsAgainst = $PointsAgainst;
		$this->Streak = $Streak;
	}/* End Team() */	
	 
	//############################################################################
	
	/*
	Function: Display($League)
	Updated: October 19th, 2007
	Description: Displays the Team attributes for other user to see what the UserID wants,onmouseover=\"ShowContent('TeamDescDisplay'); return true;\"
	describe the Team, where to get the Team, etc..
	*/	
	function Display($League)
	{		
		echo "<div class=\"Team\">
				<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"600\">
					<tr style=\"font-size: smaller;\">
						<th align=\"center\" width=\"40\" rowspan=\"2\"><img src=\"http://hockey.joshhughes.com/$League/images/small/".$this->TeamName.".gif\"></th>
						<td align=\"left\" width=\"130\" rowspan=\"2\"><a href=\"".$this->URL."\" class=\"permLink\" target=\"blank\" title=\"".$this->City." ".$this->TeamName." @ ".$this->URL."\">".$this->City." ".$this->TeamName."</a></td>
						<th width=\"40\" align=\"left\">W-L-T</th>
						<th width=\"30\" align=\"left\">PF</th>
						<th width=\"30\" align=\"left\">PA</th>
						<th width=\"30\" align=\"left\">Home</th>
						<th width=\"30\" align=\"left\">Road</th>
						<th width=\"30\" align=\"left\">AFC</th>
						<th width=\"30\" align=\"left\">NFC</th>
						<th width=\"30\" align=\"left\">DIV</th>
						<th width=\"25\" align=\"left\">Streak</th>
					</tr>
					<tr style=\"font-size: smaller;\">
						<td align=\"left\" width=\"40\">".$this->Wins."-".$this->Losses."-".$this->Ties."</td>
						<td align=\"left\" width=\"30\">".$this->PointsFor."</td>
						<td align=\"left\" width=\"30\">".$this->PointsAgainst."</td>
						<td align=\"left\" width=\"30\">".$this->HomeWins." - ".$this->HomeLosses."</td>
						<td align=\"left\" width=\"30\">".$this->RoadWins." - ".$this->RoadLosses."</td>
						<td align=\"left\" width=\"30\">".$this->AFCWins." - ".$this->AFCLosses."</td>
						<td align=\"left\" width=\"30\">".$this->NFCWins." - ".$this->NFCLosses."</td>
						<td align=\"left\" width=\"30\">".$this->DivWins." - ".$this->DivLosses."</td>
						<td align=\"left\" width=\"25\"> ".$this->Streak."</td>						
					</tr>
				  </table>
			</div>\n";

	}/* End Display() */  
   
} /* End Team Class */
?> 